package al.ui;

import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

public class ButtonPane extends JPanel {
	public ButtonPane(String labels[]) {
		setLayout(new FlowLayout(FlowLayout.RIGHT));
		setBackground(Color.WHITE);
		for (int i=0; i<labels.length; i++) {
			JButton b = new JButton(labels[i]);
			add(b);
		}
	}
	
	public void setAlignment(int align) {
		setLayout(new FlowLayout(align));
	}
}
